<template>
  <div id="app">
    <span v-if="errorLink"></span>
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: "app",
    computed: {
      errorLink() {
        if (!this.$route.matched || this.$route.matched.length === 0) {
          window.location.href = "/404";
        }
      }
    }
  };
</script>

<style>

</style>